package org.msd.service;

import org.msd.dao.ReserveDao;
import org.msd.model.Reserve;
import org.msd.service.iml.ReServeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class Bookbusiness implements ReServeService {
    /*
    预定的实现类
     */
    @Autowired
    private ReserveDao reserveDao;

    @Override
    public int insertReserve(Reserve reserve) {
        return reserveDao.insertReserve(reserve);
    }

    @Override
    public List<Reserve> Querybyid(String phone) {
        return reserveDao.Querybyid(phone);
    }

    @Override
    public List<Reserve> Queryall() {
        return reserveDao.Queryall();
    }


}
